package homework.api.day06._cp;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOISDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("hfos.txt");
        fos.write(511);
        fos.write(5);
        fos.close();

        FileInputStream fis = new FileInputStream("hfos.txt");

        int b = fis.read();
        System.out.println(b);

        b = fis.read();
        System.out.println(b);

        fis.close();

    }
}
